package com.liwu.publish.platform.common.exception;

import lombok.Getter;

import java.io.Serializable;

/**
 * @Auther: liwu
 * @Date: 2019/5/14 16:08
 * @Description:
 */
@Getter
public enum ErrorCode implements Serializable {


    /**
     * 与业务无关错误码 1000 - 开始
     */
    PARAM_ERROR(1001, "参数异常"),
    DATA_ERROR(1002, "数据异常"),


    ;;
    private Integer code;
    private String message;

    ErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
